package org.gtugs.omsk.funnycats.engine.beans;

public class Position {

	public static Position make(float x, float y){
		return new Position(x, y);
	}
	
	private Position(float x, float y) {
		this.x = x;
		this.y = y;
	}
	
	public static float distance(Position p1, Position p2){
		float dx = p1.x - p2.x, dy = p1.y - p2.y;
		return (float)Math.sqrt(dx*dx + dy*dy);
	}
	
	public final float x;
	public final float y;
}
